import java.util.Scanner;

public class Customer {
    private int customerNumber;
    private String customerName;
    private String preferences;
    private int budget;
    public String order="";


    public Customer(int customerNumber, String customerName, String preferences, int budget) {
        this.customerNumber = customerNumber;
        this.customerName = customerName;
        this.preferences = preferences;
        this.budget = budget;
    }

    public int getCustomerNumber() {

        return customerNumber;
    }

    public void setCustomerNumber(int customerNumber) {

        this.customerNumber = customerNumber;
    }

    public String getCustomerName() {

        return customerName;
    }

    public void setCustomerName(String customerName) {

        this.customerName = customerName;
    }

    public String getPreferences() {

        return preferences;
    }

    public void setPreferences(String preferences) {

        this.preferences = preferences;
    }

    public int getBudget() {

        return budget;
    }

    public void setBudget(int budget) {

        this.budget = budget;
    }

    public void buyCoffee(){

        Scanner s = new Scanner(System.in);
        System.out.println("请问你要多大的咖啡？(short/tall/grand/venti)");
        String size = s.nextLine();
        if(size.equals("short")||size.equals("tall")||size.equals("grand")||size.equals("venti")){
            order = order+size+"|";
        }
        else {
            System.out.println("抱歉这个size咱不卖");
            System.exit(0);
        }

        System.out.println("请问你要多少个shot？");
        String shot = s.nextLine();
        order = order+shot+"|";

        System.out.println("请问你要哪种奶？(coconut/oat/almond/soy)");
        String dairy = s.nextLine();

        if(dairy.equals("coconut")||size.equals("oat")||size.equals("almond")||size.equals("soy")){
            order = order+dairy+"|";
        }
        else {
            System.out.println("抱歉这个奶咱不卖");
            System.exit(0);
        }

        System.out.println("请问你要冷的热的？(cold/hot)");
        String temp = s.nextLine();
        if(temp.equals("cold")||temp.equals("hot")){
            order = order+temp+"|";
        }
        else {
            System.out.println("你有啥毛病??");
            System.exit(0);

            System.out.println("请问你要外带吗？(takeout/stay)");
            String takeOut = s.nextLine();
            if(takeOut.equals("takeout")||takeOut.equals("stay")){
                order = order+takeOut+"|";
            }
            else {
                System.out.println("你到底想在哪喝??");
                System.exit(0);
            }

            System.out.println("请问你要哪种咖啡豆？");
            String bean = s.nextLine();
            if(bean!= null){
                order = order+bean+"|";
            }
            else {
                System.out.println("不用豆子咋喝咖啡？？？");
                System.exit(0);
            }



        }
    }
}